package com.itheima.a07regexdemo1;

public class RegexDemo1 {
    public static void main(String[] args) {
        //[]里面的东西中间默认存在或者|


        String regex = "[1~9]\\d{16}[\\dXx]";
        boolean matches = "22345612341234123X".matches(regex);
        System.out.println(matches);

    }
}
